package trlygjj.tanruiliyigenjinjin.mapper;

import trlygjj.tanruiliyigenjinjin.domain.Curriculum;
import trlygjj.tanruiliyigenjinjin.query.QueryObject;

import java.util.List;

public interface CurriculumMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Curriculum record);

    Curriculum selectByPrimaryKey(Long id);

    List<Curriculum> selectAll();

    int updateByPrimaryKey(Curriculum record);


    /**
     * 查询总条数
     * @param qo 查询对象的信息
     * @return
     */
    int queryForCount(QueryObject qo);

    /**
     * 分页的查询
     * @param qo 查询对象的信息
     * @return
     */

    List<Curriculum> queryForList(QueryObject qo);

    /**
     *查询 课程的名称,根据curriculumSerise的id
     * @param curriculumSeriseId 课程系列的id
     * @return 返回Curriculum的对象
     */
    List<Curriculum> selectCurriculumNameBycurriculumSeriseId(Long curriculumSeriseId);
}